package cn.edu.scau.cmi.chenbingquan.customize.domain;

// 学生类
public class Student {
	private long id;
	private String name;
	private Teacher teacher;
	
	public Student(long id) {
		this.id = id;
	}
	
	public Student(long id, String name) {
		this.id = id;
		this.name = name;
	}
	
	public Student(long id, Teacher teacher) {
		this.id = id;
		this.teacher = teacher;
	}
	
	public Student(long id, String name, Teacher teacher) {
		this.id = id;
		this.name = name;
		this.teacher = teacher;
	}

	// 访问器与修改器
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
}
